<template>
	<view class="index">
		<view class="home_banner">
			<view class="title_box">
				<image src="../../static/logo.png" mode="aspectFill" class="logo"></image>
				<view>
					<text class="title">茶查查</text>
					<text class="title_copy">（茶饮行业ToB大模型）</text>
				</view>
			</view>
			<view class="copy">已收录<text class="copy_num">XXX</text>茶饮品牌数据<text class="copy_num">XX万家</text>茶饮门店数据<text class="copy_num">XX万</text>茶饮SKU数据<text class="copy_num">XXX家</text>供应商数据</view>
			<uni-search-bar readonly placeholder="请输入茶饮品牌或品类" :radius="100" @click="linkSearch"></uni-search-bar>
		</view>
		<view class="chat_ai">
			<view class="chat_title">茶小品</view>
			<view class="link_chat_box">
				<view class="link_chat" @click="linkChat">进入对话</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			linkSearch() {
				uni.navigateTo({
					url: '/pages/search/search',
					animationType: 'slide-in-right', // 指定动画类型
					animationDuration: 1000 // 动画时长
				})
			},
			linkChat() {
				uni.navigateTo({
					url: '/pages/aiChart/aiChart',
					animationType: 'slide-in-right', // 指定动画类型
					animationDuration: 1000 // 动画时长
				})
			}
		}
	}
</script>

<style scoped>
	.index {
		/* padding: 20px; */
		font-size: 14px;
		line-height: 24px;
		background: #f5f5f5;
		min-height: 100vh;
	}

	.home_banner {
		background: #2979ff;
		padding: 20rpx;
	}

	.title_box {
		display: flex;
		align-items: center;
		padding: 0 20rpx;
	}

	.logo {
		width: 48rpx;
		height: 48rpx;
	}

	.title {
		font-size: 44rpx;
		font-weight: 600;
		font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
		color: #ffffff;
		margin-left: 10rpx;
	} 
	.title_copy {
		font-size: 36rpx;
		font-weight: 600;
		font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
		color: #ffffff;
	}
	.copy {
		font-size: 28rpx;
		font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
		color: rgba(255, 255, 255, 0.8);
		letter-spacing: 2rpx;
		padding: 20rpx;
	}
	.copy_num {
		font-weight: bold;margin: 0 10rpx;
		color: #ffffff;
	}
	.chat_ai {
		margin: 40rpx;
		background: #ffffff;
		border-radius: 20rpx;
		height: 300rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.chat_title {
		height: 80rpx;
		background: rgb(245, 248, 255);
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
	}
	.link_chat_box {
		height: 80rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.link_chat {
		width: 200rpx;
		height: 60rpx;
		background: #2979ff;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 20rpx;
		color: #ffffff;
	}
</style>